package com.zhumr.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhumr.dao.CrewInfoMapper;
import com.zhumr.model.CrewInfo;
import com.zhumr.service.ICrewInfoService;

@Service("crewService")
public class CrewInfoServiceImpl implements ICrewInfoService {

	@Autowired
	private CrewInfoMapper crewMapper;

	public List<CrewInfo> getAllCrew(Map<String, Object> map) {
		return crewMapper.getAllCrew(map);
	}

	public CrewInfo getCrewById(int id) {
		return crewMapper.getCrewById(id);
	}

	@Override
	public List<CrewInfo> myCrewList(int ReleaseUserId) {

		return crewMapper.myCrewList(ReleaseUserId);
	}

	@Override
	public int delectMyCrew(int id) {
		return crewMapper.delectMyCrew(id);
	}

}
